package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("商品属性项创建参数")
public class ProductPropertyCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "商品id")
    private Long spuId;
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 属性值列表
     */
    List<ProductPropertyValueCreateValidate> propertyValues;
}
